package com.quan.mall.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.baomidou.mybatisplus.annotation.IdType;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import javax.validation.constraints.NotNull;
import com.quan.commons.core.bean.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 会员-收货地址
 *
 * @author yhaoquan
 * @email yhaoquan@163.com
 * @date 2021-04-02 00:13:13
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("ums_member_receive_address")
public class UmsMemberReceiveAddress extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
    private Long id;

	/**
	 * 会员ID
	 */
    private Long memberId;

	/**
	 * 收货人姓名
	 */
    private String contact;

	/**
	 * 电话
	 */
    private String phone;

	/**
	 * 省份/直辖市
	 */
    private String province;

	/**
	 * 城市
	 */
    private String city;

	/**
	 * 区
	 */
    private String district;

	/**
	 * 详细地址(街道)
	 */
    private String address;

	/**
	 * 是否默认：1->是，2->否
	 */
    private Boolean isDefault;

	/**
	 * 创建时间
	 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime ctime;

	/**
	 * 最后更新时间
	 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime utime;


}
